$(function(){
	//添加操作备注
	var $btnSave = $('#btnSave');
	
	$btnSave.click(function(){
		consigneeSave();
	});
	
});

//保存修改
function consigneeSave(){
	
	var order_id 	= $('#order_id').val();
	var consignee	= $.trim($('#consignee').val());
	var mobile_phone= $.trim($('#mobile_phone').val());
	
	var address			= $.trim($('#address').val());
	var pay_id			= $.trim($('#pay_id').val());
	
	var delivery_time 	= $.trim($('#delivery_time').val());
	var postscript		= $.trim($('#postscript').val());

	var params = {
		'order_id'			:order_id,
		'consignee'			:consignee,
		'mobile_phone'			:mobile_phone,
		'address'			:address,
		'pay_id'			:pay_id,
		'delivery_time'		:delivery_time,
		'postscript'		:postscript
	};
	$.post('/index.php/Admin/Order/consignee_save',params,function(data){
		
		if(data.success){
			alert('保存成功');
			
			location.href = '/index.php/Admin/Order/detail?id=' + order_id;
		}else{
			alert('保存失败');
		}
		
	},'json');
}